package com.woniuxy.intellihome.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.intellihome.entity.GoodsSpecDetail;
import com.woniuxy.intellihome.mapper.GoodsSpecDetailMapper;
import com.woniuxy.intellihome.service.GoodsSpecDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
@Service
public class GoodsSpecDetailServiceImpl extends ServiceImpl<GoodsSpecDetailMapper, GoodsSpecDetail> implements GoodsSpecDetailService {
    @Autowired
    private GoodsSpecDetailMapper goodsSpecDetailMapper;

    @Override
    public Integer getSpecIdBySpecValueId2(int id1, int id2) {
        return goodsSpecDetailMapper.getSpecIdBySpecValueId2(id1, id2);
    }

    @Override
    public Integer getSpecIdBySpecValueId3(int id1, int id2, int id3) {
        return goodsSpecDetailMapper.getSpecIdBySpecValueId3(id1, id2, id3);
    }

    @Override
    public Integer getSpecIdBySpecValueId4(int id1, int id2, int id3, int id4) {
        return goodsSpecDetailMapper.getSpecIdBySpecValueId4(id1, id2, id3, id4);
    }

    @Override
    public Integer getSpecIdBySpecValueId5(int id1, int id2, int id3, int id4, int id5) {
        return goodsSpecDetailMapper.getSpecIdBySpecValueId5(id1, id2, id3, id4, id5);
    }

    @Override
    public List<Integer> getSkuIdBySpuId(int goods_id) {
        return goodsSpecDetailMapper.getSkuIdBySpuId(goods_id);
    }
}
